typedef HRESULT (WINAPI *TD3DXLoadSurfaceFromSurface)(
  _In_  LPDIRECT3DSURFACE9 pDestSurface,
  _In_  const PALETTEENTRY *pDestPalette,
  _In_  const RECT *pDestRect,
  _In_  LPDIRECT3DSURFACE9 pSrcSurface,
  _In_  const PALETTEENTRY *pSrcPalette,
  _In_  const RECT *pSrcRect,
  _In_  DWORD Filter,
  _In_  D3DCOLOR ColorKey
);

TD3DXLoadSurfaceFromSurface OldD3DXLoadSurfaceFromSurface;

DllExport HRESULT cc D3DXLoadSurfaceFromSurface(
  _In_  LPDIRECT3DSURFACE9 pDestSurface,
  _In_  const PALETTEENTRY *pDestPalette,
  _In_  const RECT *pDestRect,
  _In_  LPDIRECT3DSURFACE9 pSrcSurface,
  _In_  const PALETTEENTRY *pSrcPalette,
  _In_  const RECT *pSrcRect,
  _In_  DWORD Filter,
  _In_  D3DCOLOR ColorKey
)
{
	return OldD3DXLoadSurfaceFromSurface (pDestSurface, pDestPalette, pDestRect, pSrcSurface,pSrcPalette,pSrcRect,Filter,ColorKey);
}
